package code.adapter.jackAdapter02;

class AdapterPattern{}

class Speaker{
    public String speak(){
        return "888888";
    }
}

interface Translator{
    public String translate();
}

class Adapter implements Translator{

    private Speaker speaker;

    public Adapter(Speaker speaker) {
        this.speaker = speaker;
    }

    public String translate() {
        return speaker.speak();
    }
}
